package de.jkoslows.util.control;

public class Util {
	
	public static <T> T assertNotNull(T instance, Class<T> clazz ) {
		if(instance == null)
			throw new IllegalArgumentException("Cannot add an null item reference to "+clazz.getName());
		return instance;
	}

}
